Integrand size = 28, antiderivative size = 143 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\frac {5 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{72 \sqrt {2} c^{3/2} f}+\frac {5 \cos (e+f x)}{72 f (c-c \sin (e+f x))^{3/2}}-\frac {5 \sec (e+f x)}{54 c f \sqrt {c-c \sin (e+f x)}}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{27 c^2 f} \]
[Out]
Time = 0.19 (sec) , antiderivative size = 155, normalized size of antiderivative = 1.08, number of steps used = 6, number of rules used = 6, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.214, Rules used = {2815, 2754, 2766, 2729, 2728, 212} \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\frac {5 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{8 \sqrt {2} a^2 c^{3/2} f}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f}+\frac {5 \cos (e+f x)}{8 a^2 f (c-c \sin (e+f x))^{3/2}}-\frac {5 \sec (e+f x)}{6 a^2 c f \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Rule 212
Rule 2728
Rule 2729
Rule 2754
Rule 2766
Rule 2815
Rubi steps \begin{align*} \text {integral}& = \frac {\int \sec ^4(e+f x) \sqrt {c-c \sin (e+f x)} \, dx}{a^2 c^2} \\ & = -\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f}+\frac {5 \int \frac {\sec ^2(e+f x)}{\sqrt {c-c \sin (e+f x)}} \, dx}{6 a^2 c} \\ & = -\frac {5 \sec (e+f x)}{6 a^2 c f \sqrt {c-c \sin (e+f x)}}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f}+\frac {5 \int \frac {1}{(c-c \sin (e+f x))^{3/2}} \, dx}{4 a^2} \\ & = \frac {5 \cos (e+f x)}{8 a^2 f (c-c \sin (e+f x))^{3/2}}-\frac {5 \sec (e+f x)}{6 a^2 c f \sqrt {c-c \sin (e+f x)}}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f}+\frac {5 \int \frac {1}{\sqrt {c-c \sin (e+f x)}} \, dx}{16 a^2 c} \\ & = \frac {5 \cos (e+f x)}{8 a^2 f (c-c \sin (e+f x))^{3/2}}-\frac {5 \sec (e+f x)}{6 a^2 c f \sqrt {c-c \sin (e+f x)}}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f}-\frac {5 \text {Subst}\left (\int \frac {1}{2 c-x^2} \, dx,x,-\frac {c \cos (e+f x)}{\sqrt {c-c \sin (e+f x)}}\right )}{8 a^2 c f} \\ & = \frac {5 \text {arctanh}\left (\frac {\sqrt {c} \cos (e+f x)}{\sqrt {2} \sqrt {c-c \sin (e+f x)}}\right )}{8 \sqrt {2} a^2 c^{3/2} f}+\frac {5 \cos (e+f x)}{8 a^2 f (c-c \sin (e+f x))^{3/2}}-\frac {5 \sec (e+f x)}{6 a^2 c f \sqrt {c-c \sin (e+f x)}}-\frac {\sec ^3(e+f x) \sqrt {c-c \sin (e+f x)}}{3 a^2 c^2 f} \\ \end{align*}
Result contains complex when optimal does not.
Time = 1.92 (sec) , antiderivative size = 161, normalized size of antiderivative = 1.13 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\frac {\left (\frac {1}{864}+\frac {i}{864}\right ) \cos (e+f x) \left (60 \sqrt [4]{-1} \arctan \left (\left (\frac {1}{2}+\frac {i}{2}\right ) \sqrt [4]{-1} \left (1+\tan \left (\frac {1}{4} (e+f x)\right )\right )\right ) \left (\cos \left (\frac {1}{2} (e+f x)\right )-\sin \left (\frac {1}{2} (e+f x)\right )\right )^2 \left (\cos \left (\frac {1}{2} (e+f x)\right )+\sin \left (\frac {1}{2} (e+f x)\right )\right )^3+(1-i) (11+15 \cos (2 (e+f x))-20 \sin (e+f x))\right )}{c f (-1+\sin (e+f x)) (1+\sin (e+f x))^2 \sqrt {c-c \sin (e+f x)}} \]
[In]
[Out]
Time = 0.86 (sec) , antiderivative size = 157, normalized size of antiderivative = 1.10
method | result | size |
default | \(-\frac {15 \left (c +c \sin \left (f x +e \right )\right )^{\frac {3}{2}} \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) \sin \left (f x +e \right ) c +30 c^{\frac {5}{2}} \left (\cos ^{2}\left (f x +e \right )\right )-15 \left (c +c \sin \left (f x +e \right )\right )^{\frac {3}{2}} \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {c +c \sin \left (f x +e \right )}\, \sqrt {2}}{2 \sqrt {c}}\right ) c -20 c^{\frac {5}{2}} \sin \left (f x +e \right )-4 c^{\frac {5}{2}}}{48 c^{\frac {7}{2}} a^{2} \left (\sin \left (f x +e \right )+1\right ) \cos \left (f x +e \right ) \sqrt {c -c \sin \left (f x +e \right )}\, f}\) | \(157\) |
[In]
[Out]
none
Time = 0.26 (sec) , antiderivative size = 186, normalized size of antiderivative = 1.30 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\frac {15 \, \sqrt {2} \sqrt {c} \cos \left (f x + e\right )^{3} \log \left (-\frac {c \cos \left (f x + e\right )^{2} + 2 \, \sqrt {2} \sqrt {-c \sin \left (f x + e\right ) + c} \sqrt {c} {\left (\cos \left (f x + e\right ) + \sin \left (f x + e\right ) + 1\right )} + 3 \, c \cos \left (f x + e\right ) + {\left (c \cos \left (f x + e\right ) - 2 \, c\right )} \sin \left (f x + e\right ) + 2 \, c}{\cos \left (f x + e\right )^{2} + {\left (\cos \left (f x + e\right ) + 2\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 2}\right ) - 4 \, {\left (15 \, \cos \left (f x + e\right )^{2} - 10 \, \sin \left (f x + e\right ) - 2\right )} \sqrt {-c \sin \left (f x + e\right ) + c}}{96 \, a^{2} c^{2} f \cos \left (f x + e\right )^{3}} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\text {Timed out} \]
[In]
[Out]
\[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\int { \frac {1}{{\left (a \sin \left (f x + e\right ) + a\right )}^{2} {\left (-c \sin \left (f x + e\right ) + c\right )}^{\frac {3}{2}}} \,d x } \]
[In]
[Out]
Leaf count of result is larger than twice the leaf count of optimal. 350 vs. \(2 (132) = 264\).
Time = 0.50 (sec) , antiderivative size = 350, normalized size of antiderivative = 2.45 \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=-\frac {\frac {3 \, \sqrt {2} {\left (\frac {10 \, {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} - 1\right )} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}}{a^{2} c^{\frac {3}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {30 \, \sqrt {2} \log \left (-\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1}\right )}{a^{2} c^{\frac {3}{2}} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} + \frac {3 \, \sqrt {2} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{a^{2} c^{\frac {3}{2}} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )} - \frac {16 \, \sqrt {2} {\left (7 \, \sqrt {c} + \frac {12 \, \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + \frac {9 \, \sqrt {c} {\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1\right )}^{2}}{{\left (\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1\right )}^{2}}\right )}}{a^{2} c^{2} {\left (\frac {\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) - 1}{\cos \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right ) + 1} + 1\right )}^{3} \mathrm {sgn}\left (\sin \left (-\frac {1}{4} \, \pi + \frac {1}{2} \, f x + \frac {1}{2} \, e\right )\right )}}{192 \, f} \]
[In]
[Out]
Timed out. \[ \int \frac {1}{(3+3 \sin (e+f x))^2 (c-c \sin (e+f x))^{3/2}} \, dx=\int \frac {1}{{\left (a+a\,\sin \left (e+f\,x\right )\right )}^2\,{\left (c-c\,\sin \left (e+f\,x\right )\right )}^{3/2}} \,d x \]
[In]
[Out]